package com.hps.demo.service.converter;

import java.util.List;

/**
 * @author heps
 * @since 2020/7/27
 */
public abstract class BaseConverter<D, E> {

  public abstract D toDTO(E e);

  public abstract List<D> toDTO(List<E> e);

  public abstract E toEntity(D d);

  public abstract List<E> toEntity(List<D> d);
}
